import request from '@/utils/request'

// 查询系统巡检列表
export function listXtxj(query) {
  return request({
    url: '/manage/xtxj/list',
    method: 'get',
    params: query
  })
}

// 查询系统巡检详细
export function getXtxj(id) {
  return request({
    url: '/manage/xtxj/' + id,
    method: 'get'
  })
}

// 新增系统巡检
export function addXtxj(data) {
  return request({
    url: '/manage/xtxj',
    method: 'post',
    data: data
  })
}

// 修改系统巡检
export function updateXtxj(data) {
  return request({
    url: '/manage/xtxj',
    method: 'put',
    data: data
  })
}

// 删除系统巡检
export function delXtxj(id) {
  return request({
    url: '/manage/xtxj/' + id,
    method: 'delete'
  })
}
